package com.houtai.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

public class TsProblem {
    /**
     * 文章标示
     */
    private Integer p_id;

    /**
     * 文章名称
     */
    @NotEmpty(message = "文章名称不能为空")
    @Length(max = 32, message = "文章名称最多32个字符")
    private String arti_name;


    /**
     * 文章内容
     */
    @NotEmpty(message = "文章内容不能为空")
    @Length(max = 2000000, message = "文章内容最多2000000个字符")
    private String arti_content;



    /**
     * 排序
     */
    @NotNull(message = "排序不能为空")
    private Integer arti_scort;

    /**
     * 0：可用
            1：不可用,非零即可表示为不可用
     */
    private Integer is_valid;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 创建时间
     */
    private Date cret_date;

    /**
     * 修改人
     */
    private String modifier;

    /**
     * 最后修改时间
     */
    private Date mod_date;


    /**
     * 满意次数
     */
    private Integer satisfied_size;

    /**
     * 不满意次数
     */
    private Integer no_satisfied_size;


    /**
     * 发布人
     */
    private String release_people;

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public String getArti_name() {
        return arti_name;
    }

    public void setArti_name(String arti_name) {
        this.arti_name = arti_name;
    }

    public String getArti_content() {
        return arti_content;
    }

    public void setArti_content(String arti_content) {
        this.arti_content = arti_content;
    }

    public Integer getArti_scort() {
        return arti_scort;
    }

    public void setArti_scort(Integer arti_scort) {
        this.arti_scort = arti_scort;
    }

    public Integer getIs_valid() {
        return is_valid;
    }

    public void setIs_valid(Integer is_valid) {
        this.is_valid = is_valid;
    }

    public String getCreater() {
        return creater;
    }

    public void setCreater(String creater) {
        this.creater = creater;
    }

    public Date getCret_date() {
        return cret_date;
    }

    public void setCret_date(Date cret_date) {
        this.cret_date = cret_date;
    }

    public String getModifier() {
        return modifier;
    }

    public void setModifier(String modifier) {
        this.modifier = modifier;
    }

    public Date getMod_date() {
        return mod_date;
    }

    public void setMod_date(Date mod_date) {
        this.mod_date = mod_date;
    }

    public Integer getSatisfied_size() {
        return satisfied_size;
    }

    public void setSatisfied_size(Integer satisfied_size) {
        this.satisfied_size = satisfied_size;
    }

    public Integer getNo_satisfied_size() {
        return no_satisfied_size;
    }

    public void setNo_satisfied_size(Integer no_satisfied_size) {
        this.no_satisfied_size = no_satisfied_size;
    }

    public String getRelease_people() {
        return release_people;
    }

    public void setRelease_people(String release_people) {
        this.release_people = release_people;
    }
}